package com.xiaohua.system.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 登录参数
 *
 * @author 小花
 * @date 2025-03-23
 */
@ApiModel(value = "登录参数", description = "用户登录请求参数")
@Data
public class LoginUserDTO {
    @ApiModelProperty(value = "用户名", required = true, example = "xiaohua")
    @NotBlank(message = "用户名不能为空")
    private String username;

    @ApiModelProperty(value = "密码", required = true, example = "password123")
    @NotBlank(message = "密码不能为空")
    private String password;
} 